﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using SilverlightOracle.WCFService;
using System.Windows.Browser;

namespace SilverlightOracle
{
    public partial class MainPage : UserControl
    {
        public MainPage()
        {
            InitializeComponent();
            stk.Children.Add(new TrangChu());
            stk1.Children.Add(new Page1());
            
        }

        private void LayoutRoot_Loaded(object sender, RoutedEventArgs e)
        {
            {
                Onload.Begin();
                // Onload.Completed += new EventHandler(Onload_Completed);
                Onload.Completed += new EventHandler(Onload_Completed);
            }

        }

        void Onload_Completed(object sender, EventArgs e)
        {
            VisualStateManager.GoToState(this, "View1", true);
        }

       
    }
}
